import VueRouter from 'vue-router'
import index from './maincom/index.vue'
import member from './maincom/member.vue'
import cart from './maincom/cart.vue'
import search from './maincom/search.vue'
import news from './maincom/indexcomment/news.vue'
import imgshare from './maincom/indexcomment/imgshare.vue'
import shopbuy from './maincom/indexcomment/shopbuy.vue'
import sayback from './maincom/indexcomment/sayback.vue'
import videoarea from './maincom/indexcomment/videoarea.vue'
import phoneus from './maincom/indexcomment/phoneus.vue'
import newsinfo from './maincom/indexcomment/newsinfo.vue'
import imginfo from './maincom/indexcomment/info/imginfo.vue'
import shopinfo from './maincom/indexcomment/info/shopinfo.vue'
import shopdes from './maincom/indexcomment/info/shopdes.vue'
import shopcomment from './maincom/indexcomment/info/shopcomment.vue'
var router = new VueRouter({
    routes:[
        {path:'/',redirect:'/index'},
        {path:'/index',component:index},
        {path:'/member',component:member},
        {path:'/cart',component:cart},
        {path:'/search',component:search},
        {path:'/index/news',component:news},
        {path:'/index/imgshare',component:imgshare},
        {path:'/index/shopbuy',component:shopbuy},
        {path:'/index/saybac',component:sayback},
        {path:'/index/videoarea',component:videoarea},
        {path:'/index/phoneus',component:phoneus},
        {path:'/index/newsinfo/:id',component:newsinfo},
        {path:'/index/imginfo/:id',component:imginfo},
        {path:'/index/shopinfo/:id',component:shopinfo,name:'shopinfo'},
        {path:'/index/shopdescrip/:id',component:shopdes,name:'shopdescrip'},
        {path:'/index/shopcomment/:id',component:shopcomment,name:'shopcomment'}
    ],
    linkActiveClass:'mui-active'
})

export default router